package com.example.child_protection.dto.request.update;

import com.example.child_protection.dto.base.BaseUpdateRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 医院修改请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class HispitalUpdateRequestDTO extends BaseUpdateRequestDTO {

    /**
     * 医院名称
     *
     * @mbggenerated
     */
    @ApiParam(value = "医院名称",required = true)
    @NotNull
    private String name;

    /**
     * 代码
     *
     * @mbggenerated
     */
    @ApiParam(value = "医院代码",required = true)
    @NotNull
    private String code;

    /**
     * 省ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "省id",hidden = true)
    @NotNull
    private Long provinceId = 2L;

    /**
     * 市ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "城市id",hidden = true)
    @NotNull
    private Long cityId = 101L;

    /**
     * 区ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "区域id")
    @NotNull
    private Long districtId;


    public void valid(){
        super.validate( this, new Class[0] );

    }
    public boolean isValidGid() {

        return false;
    }

}
